package design.ObserverPattern;

/**
 * Created by looper on 2017/8/19.
 */
public class WeixinUser implements Observer {
  private String name;

  public WeixinUser(String name){
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override
  public void show(String information) {
    System.out.println(name+" 你好 " + information);
  }
}
